Basic Library for WinRT
MakeRelative(Popup,FrameworkElement,Func<List<AnchorMatching>>,Func<Point>,Func<Point>) Method

Windows.UI.Xaml.Controls.Primitives.Popup to handle.
Element used to locate the popup.
Function that provides the ordered list of AnchorMatching defining the corners to bound of both elements.
Function that retrieves the current position of the Popup.
Function that retrieves the current position of the reference element.
Makes the popup relative to another Windows.UI.Xaml.FrameworkElement.
Syntax
'Declaration
 
Public Overloads Shared Sub MakeRelative( _
   ByVal popup As Windows.UI.Xaml.Controls.Primitives.Popup, _
   ByVal relativeElement As Windows.UI.Xaml.FrameworkElement, _
   ByVal getLocations As System.Func(Of List(Of AnchorMatching)), _
   ByVal getPosition As System.Func(Of Point), _
   ByVal getReferencePosition As System.Func(Of Point) _
) 
public static void MakeRelative( 
   Windows.UI.Xaml.Controls.Primitives.Popup popup,
   Windows.UI.Xaml.FrameworkElement relativeElement,
   System.Func<List<AnchorMatching>> getLocations,
   System.Func<Point> getPosition,
   System.Func<Point> getReferencePosition
)

Parameters

popup
Windows.UI.Xaml.Controls.Primitives.Popup to handle.
relativeElement
Element used to locate the popup.
getLocations
Function that provides the ordered list of AnchorMatching defining the corners to bound of both elements.
getPosition
Function that retrieves the current position of the Popup.
getReferencePosition
Function that retrieves the current position of the reference element.
See Also

Reference

Extensions Class
Extensions Members
Overload List

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback